import request from 'umi-request';

export async function queryDimissionAuditList(params = {},status) {
  return request('/hr-ssc/api/api-admin/dimission/queryDimissionUpcomingtList', {
    method: 'get',
    params: {
      pageNum: params.current,
      status: status,
      ...params
    },
  }).then((res) => {
    const data = res.data;
    return {
      current: data.currPage,
      data: data.list,
      pageSize: data.pageSize,
      success: true,
      total: data.totalCount,
    };
  });
}

export async function saveDimissionUpcoming(params) {
  return request('/hr-ssc/api/api-admin/dimission/saveDimissionUpcoming', {
    method: 'POST',
    data: params,
  }).then((res) => {
    return res;
  });
}

